Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[No QA] Show Workspace Chat first instead of opening Global Create #7865

Merged
merged 8 commits into from
Feb 23, 2022

Conversation

luacmartins
Copy link
Contributor

@luacmartins luacmartins commented Feb 22, 2022

Details

Updates the welcome actions to show the Workspace chat first instead of opening the global create.

cc @TomatoToaster

Fixed Issues

$ https://github.com/Expensify/Expensify/issues/195473

Tests

  1. Get the accountID and reportID for an existing account and chat.
  2. Update the chatType of that chat to policyExpenseChat by running the following query: UPDATE reportNameValuePairs SET value = 'policyExpenseChat' WHERE name = 'chatType' AND reportID = <reportID>;
  3. Update the isFirstTimeNewExpensifyUser for that user to true by running the following query UPDATE nameValuePairs SET value = true WHERE name = 'isFirstTimeNewExpensifyUser' AND accountID = <accountID>;
  4. Clear browser data
  5. Log into that account and notice that the chat switches to the reportID chat.
  6. Create a new account by running ./script/clitools.sh generator:account
  7. Login and notice that the global create menu opens.
  • Verify that no errors appear in the JS console

QA Steps

None, as Workspace chats are not available yet.

  • Verify that no errors appear in the JS console

Tested On

  • Web
  • Mobile Web
  • Desktop
  • iOS
  • Android

Screenshots

Web

web.mov

Mobile Web

mweb.mov

Desktop

desktop.mov

iOS

ios.mov

Android

android.mov

@luacmartins luacmartins self-assigned this Feb 22, 2022
@luacmartins luacmartins changed the title Cmartins welcome action Show Workspace Chat first instead of opening Global Create Feb 22, 2022
@luacmartins luacmartins changed the title Show Workspace Chat first instead of opening Global Create [No QA] Show Workspace Chat first instead of opening Global Create Feb 22, 2022
@@ -113,7 +113,7 @@ const HeaderView = (props) => {
</Pressable>
</Tooltip>
)}
{props.report && props.report.reportName && (
{Boolean(props.report && props.report.reportName) && (
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added this to fix a RN error that I was seeing where text is a child of View

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I haven't seen it done like this, good thinking.

@luacmartins luacmartins marked this pull request as ready for review February 22, 2022 22:10
@luacmartins luacmartins requested a review from a team as a code owner February 22, 2022 22:10
@MelvinBot MelvinBot requested review from MonilBhavsar and removed request for a team February 22, 2022 22:10
@MonilBhavsar
Copy link
Contributor

Can you please add test screenshots

Copy link
Contributor

@MonilBhavsar MonilBhavsar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Simple change and looks good to me
@TomatoToaster could you please give this a quick review

Copy link
Contributor

@TomatoToaster TomatoToaster left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Niceeee

@TomatoToaster TomatoToaster merged commit 9b31ae4 into main Feb 23, 2022
@TomatoToaster TomatoToaster deleted the cmartins-welcomeAction branch February 23, 2022 15:53
@OSBotify
Copy link
Contributor

✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release.

@OSBotify
Copy link
Contributor

🚀 Deployed to staging by @TomatoToaster in version: 1.1.40-0 🚀

platform result
🤖 android 🤖 success ✅
🖥 desktop 🖥 success ✅
🍎 iOS 🍎 success ✅
🕸 web 🕸 success ✅

@OSBotify
Copy link
Contributor

OSBotify commented Mar 1, 2022

🚀 Deployed to production by @yuwenmemon in version: 1.1.40-2 🚀

platform result
🤖 android 🤖 success ✅
🖥 desktop 🖥 success ✅
🍎 iOS 🍎 success ✅
🕸 web 🕸 success ✅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants